package stx.com.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import stx.com.dao.DiaryDao;
import stx.com.entity.TDiary;

@Service
public class DiaryServiceImp implements DiaryService {
	
	@Resource
	private DiaryDao diaryDao;

	@Override
	public boolean addDiary(TDiary diary) {
		return diaryDao.addDiary(diary);
	}

	@Override
	public List<TDiary> lookDiary(TDiary diary) {
		return diaryDao.lookDiary(diary);
	}

	@Override
	public boolean updateDiary(TDiary diary) {
		return diaryDao.updateDiary(diary);
	}

	@Override
	public boolean deleteDiary(TDiary diary) {
		return diaryDao.deleteDiary(diary);
	}
	
	@Override
	public  TDiary look(TDiary diary){
		return diaryDao.look(diary);
	}

}
